package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.pojo.Role;
import com.itheima.health.pojo.User;

import java.util.List;

public interface UserService {

    User findUserByUsername(String username);

    PageResult pageQuery(Integer currentPage, String queryString, Integer pageSize);

    void add(User user, List<Integer> roleIds);

    void update(User user);

    User findById(Integer id);

    List<Role> selectRoleIdsOfAUser(Integer id);

    void remove(Integer id);
}
